package com.yadang.properties;

import java.io.FileNotFoundException;
import java.util.Enumeration;
import java.util.Properties;

/**
 * @author: 亚当
 * @date: 2023年03月05日 16:18
 * @package: com.yadang.properties
 * @Description: TODO
 */
public class MyProperties {
    public static void main(String[] args) throws FileNotFoundException {
        System.out.println("Before setProperties method = "+ System.getProperty("user.dir"));
        Properties p= System.getProperties();
        p.put("user.dir", "this/is/the/new/user/dir/path");
        System.setProperties(p);
        System.out.println("After setProperties method = "+System.getProperty("user.dir"));

    }
}
